{extend name="public/base" /}
{block name="style"}<link href="__LIB__/fileinput/css/fileinput.min.css" rel="stylesheet" /> {/block}
 {block name="body"}
 <div class="content-tabs">
	<ol class="breadcrumb">
		<li>
			<a href="{:url('web/index/index')}"><i class="fa fa-home"></i></a>
		</li>
		<li>
			<a href="{:url('index')}">库存盘点</a>
		</li>
		<li><strong>编辑库存</strong></li>
	</ol>
</div>
<div class="row">
	<div class="col-sm-12">
		<div class="ibox float-e-margins">
			<div class="ibox-content">
				<form id="myForm" class="form-horizontal m-t" method="post" action="{:url('edit')}">
					<!--基本信息-->
					<input type="hidden" name="id" value="{$list.id}">
					<div class="panel panel-default">
					<div class="panel-heading"> 基本信息</div>
						<div class="panel-body">
						
						<div class="form-group">
							<label class="col-sm-3 control-label">盘点单号：</label>
							<div class="input-group col-sm-4">
								<input type="text" id="sn" name="sn" value="{$list.sn}" class="form-control" />
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-3 control-label">整体盘盈：</label>
							<div class="input-group col-sm-4">
								<input type="text" id="stock_win" name="stock_win" value="{$list.stock_win}" class="form-control" />
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-3 control-label">整体盘亏：</label>
							<div class="input-group col-sm-4">
								<input type="text" id="stock_lose" name="stock_lose"  value="{$list.stock_lose}" class="form-control" />
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-3 control-label">库存数量：</label>
							<div class="input-group col-sm-4">
								<input type="text" id="count" name="count"  value="{$list.count}" class="form-control" />
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-3 control-label">状态：</label>
							<div class="input-group col-sm-4">
								<select class="form-control" name="status" id="status">
									<option value="0" >请选择库存状态</option>
									<option value="1" {if $list.status==1}selected="selected"{/if}>在售</option>
									<option value="2" {if $list.status==2}selected="selected"{/if}>未上线</option>
								</select>
							</div>
						</div>
						<div class="form-group">
							<label class="col-sm-3 control-label">备注：</label>
							<div class="input-group col-sm-4">
								<textarea id="memo" name="memo" rows="5" style="width: 450px;" placeholder="备注">{$list.memo}</textarea>
							</div>
						</div>
						
						
					</div>
					</div>
					<!--基本信息end-->
					
					
					
					
					<div class="hr-line-dashed"></div>
					<div class="form-group">
						<div class="col-sm-4 col-sm-offset-3">
							<button class="btn btn-primary" type="submit"><i class="fa fa-save"></i> 保存</button>&nbsp;&nbsp;
							<a href="{:url('index')}" class="btn btn-danger"><i class="fa fa-arrow-left"></i> 返回 </a>
						</div>
					</div>
				</form>
			</div>
		</div>
	</div>
</div>
{/block} {block name="script"}
<script src="__JS__/jquery.form.js"></script>
<script src="__LIB__/datepicker/WdatePicker.js"></script>
<script src="__LIB__/validate/jquery.validate.min.js"></script>
<script src="__LIB__/validate/messages_zh.min.js"></script>
<script src="__LIB__/validate/add_validate.min.js"></script>
<script src="__LIB__/fileinput/js/fileinput.min.js"></script>
<script src="__LIB__/fileinput/js/locales/zh.js"></script>
<script src="__LIB__/ueditor/ueditor.config.js" type="text/javascript"></script>
<script src="__LIB__/ueditor/ueditor.all.js" type="text/javascript"></script>
{/block}